<?php /* Smarty version 2.6.20, created on 2011-10-25 19:40:30
         compiled from _core/pagecommon/_mvc/_control/handlepageb1receiveproduct.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', '_core/pagecommon/_mvc/_control/handlepageb1receiveproduct.tpl', 13, false),)), $this); ?>
function HandlePageB1ReceiveProduct(gui, operator, now, options) {
  this._gui = gui;
  this._operator = operator;
  this._now = now;
  this._options = options;
  
  this._query = DlmanageUtils.asstReceiveProduct;
  
  this._createElements();
};

HandlePageB1ReceiveProduct.prototype._createElements = function() {
  if (this._operator.type != '<?php echo ((is_array($_tmp=@USER_TYPE_ADMIN)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
') {
    var smryGui = GuiSmryAsst.instance();
    var smryArgs = DlmanageUtils.asstSmryArgs(smryGui, this._operator);
  } else {
    var smryGui = null;
    var smryArgs = [];
  }
  var manager = (this._operator.type == '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
') ? true : false;
  var supervise = (this._operator.type == '<?php echo ((is_array($_tmp=@USER_TYPE_MANAGER_ASSISTANT)) ? $this->_run_mod_handler('escape', true, $_tmp, 'javascript') : smarty_modifier_escape($_tmp, 'javascript')); ?>
') ? 0 : 1;
  var gui = GuiMails.instance(this._gui.mailNo, this._gui.customerNo, this._gui.product, this._gui.search, this._gui.pages, this._gui.tasks);
  new HandleMails(gui, null, { operator: this._operator, now: this._now, query: this._query, menu: { a: 1, b: 1, c: 1, d: 16 }, smryGui: smryGui, smryArgs: smryArgs, a: this._options.a, s: supervise, manager: manager });
};